// 基于template/src/views/{{appModules}}/{{pages@DEEDITVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IEditViewModel } from "@/core/interface/view/model";
function getModel(): IEditViewModel {
  return {
    caption: "avue示例实体01",
    title: "avue示例实体01编辑视图",
    capPSLanguageRes: "DE.LNAME.AVUECHILDONE",
    titlePSLanguageRes: "PAGE.TITLE.AVUECHILDONE.EDITVIEW",
    showDataInfoBar: true,
    codeName: 'avueChildOneEditView',
    uiEngineModel: [
                {
                    name: 'toolbar_deuiaction1_click',
                    triggerType: 'CTRLEVENT',
                    logicType: 'APPVIEWUIACTION',
                    eventNames: 'CLICK',
                    scriptCode: ``,
                    logicName:``,
                    logicTag: '',
                    eventArg: 'deuiaction1',
                    eventArg2: '',
                    timer: 0,
                    psViewCtrlName: 'toolbar',
                    uIActionTag: 'New',
                    entityCodeName: '',
                },
                {
                    name: 'toolbar_deuiaction2_click',
                    triggerType: 'CTRLEVENT',
                    logicType: 'APPVIEWUIACTION',
                    eventNames: 'CLICK',
                    scriptCode: ``,
                    logicName:``,
                    logicTag: '',
                    eventArg: 'deuiaction2',
                    eventArg2: '',
                    timer: 0,
                    psViewCtrlName: 'toolbar',
                    uIActionTag: 'RemoveAndExit',
                    entityCodeName: '',
                },
                {
                    name: 'toolbar_tbitem3_click',
                    triggerType: 'CTRLEVENT',
                    logicType: 'APPVIEWUIACTION',
                    eventNames: 'CLICK',
                    scriptCode: ``,
                    logicName:``,
                    logicTag: '',
                    eventArg: 'tbitem3',
                    eventArg2: '',
                    timer: 0,
                    psViewCtrlName: 'toolbar',
                    uIActionTag: 'Save',
                    entityCodeName: '',
                },
                {
                    name: 'toolbar_tbitem5_click',
                    triggerType: 'CTRLEVENT',
                    logicType: 'APPVIEWUIACTION',
                    eventNames: 'CLICK',
                    scriptCode: ``,
                    logicName:``,
                    logicTag: '',
                    eventArg: 'tbitem5',
                    eventArg2: '',
                    timer: 0,
                    psViewCtrlName: 'toolbar',
                    uIActionTag: 'SaveAndExit',
                    entityCodeName: '',
                },
                {
                    name: 'toolbar_tbitem9_click',
                    triggerType: 'CTRLEVENT',
                    logicType: 'APPVIEWUIACTION',
                    eventNames: 'CLICK',
                    scriptCode: ``,
                    logicName:``,
                    logicTag: '',
                    eventArg: 'tbitem9',
                    eventArg2: '',
                    timer: 0,
                    psViewCtrlName: 'toolbar',
                    uIActionTag: 'SaveAndStart',
                    entityCodeName: '',
                },
                {
                    name: 'toolbar_tbitem15_click',
                    triggerType: 'CTRLEVENT',
                    logicType: 'APPVIEWUIACTION',
                    eventNames: 'CLICK',
                    scriptCode: ``,
                    logicName:``,
                    logicTag: '',
                    eventArg: 'tbitem15',
                    eventArg2: '',
                    timer: 0,
                    psViewCtrlName: 'toolbar',
                    uIActionTag: 'Print',
                    entityCodeName: '',
                }
        ],
    ctrls: [
        {
            name: 'toolbar',
            codeName: 'EditViewtoolbar',
            controlType: 'TOOLBAR',
        },
        {
            name: 'form',
            codeName: 'Main',
            controlType: 'FORM',
        }
    ],
    ctrlParams: {
        AvueChildOnetoolbar: {},
        AvueChildOneform: {},
    },
    cssName: "",
    name: "avueChildOneEditView",
    viewType: "DEEDITVIEW",
    viewStyle: "DEFAULT",
    showCaption: true,
    isLoadDefault: true,
    entityCodeName: "AvueChildOne",
    keyPSAppDEField: "AvueChildOneId",
    majorPSAppDEField: "AvueChildOneName",
    expandSearchForm:false,
    toolbarItems: [
        {
      		actionLevel: '100',
      		caption: '新建',
      		captionLanResTag: 'TBB.TEXT.*.NEW',
      		name: 'deuiaction1',
      		showCaption: true,
      		tooltip: '新建',
      		tooltipLanResTag: 'TBB.TOOLTIP.*.NEW',
      		itemType: 'DEUIACTION',
      		showIcon: true,
      		disabled: false,
      		cssName: '',
      		imagePath: '',
      		iconCls: 'fa fa-file-text-o',
              imagePathX: '',
      		dataAccessAction: '',
      		noPrivDisplayMode: 2,
      		uiAction: {
      			codeName: 'New',
      			uIActionMode: 'SYS',
      			actionTarget: '',
      			uIActionTag: 'New',
      			uIActionType: 'DEUIACTION'
      		},
              logic: {
              	name: 'toolbar_deuiaction1_click',
              	actionTag: 'New',
              	xDataCtrlName: 'form',
              	predefinedType: 'EDITVIEW_NEWACTION',
              }
        },
        {
      		actionLevel: '100',
      		caption: '删除并退出',
      		captionLanResTag: 'TBB.TEXT.EDITVIEW.REMOVEANDCLOSE',
      		name: 'deuiaction2',
      		showCaption: true,
      		tooltip: '删除并退出',
      		tooltipLanResTag: 'TBB.TOOLTIP.EDITVIEW.REMOVEANDCLOSE',
      		itemType: 'DEUIACTION',
      		showIcon: true,
      		disabled: false,
      		cssName: '',
      		imagePath: '',
      		iconCls: 'fa fa-remove',
              imagePathX: '',
      		dataAccessAction: '',
      		noPrivDisplayMode: 2,
      		uiAction: {
      			codeName: 'RemoveAndExit',
      			uIActionMode: 'SYS',
      			actionTarget: 'SINGLEKEY',
      			uIActionTag: 'RemoveAndExit',
      			uIActionType: 'DEUIACTION'
      		},
              logic: {
              	name: 'toolbar_deuiaction2_click',
              	actionTag: 'RemoveAndExit',
              	xDataCtrlName: 'form',
              	predefinedType: 'EDITVIEW_REMOVEANDEXITACTION',
              }
        },
        {
      		actionLevel: '100',
      		caption: '保存',
      		captionLanResTag: 'TBB.TEXT.*.SAVE',
      		name: 'tbitem3',
      		showCaption: true,
      		tooltip: '保存',
      		tooltipLanResTag: 'TBB.TOOLTIP.*.SAVE',
      		itemType: 'DEUIACTION',
      		showIcon: true,
      		disabled: false,
      		cssName: 'deepskyblue-toolbar',
      		imagePath: '',
      		iconCls: 'fa fa-save',
              imagePathX: '',
      		dataAccessAction: '',
      		noPrivDisplayMode: 2,
      		uiAction: {
      			codeName: 'Save',
      			uIActionMode: 'SYS',
      			actionTarget: '',
      			uIActionTag: 'Save',
      			uIActionType: 'DEUIACTION'
      		},
              logic: {
              	name: 'toolbar_tbitem3_click',
              	actionTag: 'Save',
              	xDataCtrlName: 'form',
              	predefinedType: 'EDITVIEW_SAVEACTION',
              }
        },
        {
      		actionLevel: '100',
      		caption: '保存并关闭',
      		captionLanResTag: 'TBB.TEXT.EDITVIEW.SAVEANDCLOSE',
      		name: 'tbitem5',
      		showCaption: true,
      		tooltip: '保存并关闭',
      		tooltipLanResTag: 'TBB.TOOLTIP.EDITVIEW.SAVEANDCLOSE',
      		itemType: 'DEUIACTION',
      		showIcon: true,
      		disabled: false,
      		cssName: '',
      		imagePath: '',
      		iconCls: 'sx-tb-saveandclose',
              imagePathX: '',
      		dataAccessAction: '',
      		noPrivDisplayMode: 2,
      		uiAction: {
      			codeName: 'SaveAndExit',
      			uIActionMode: 'SYS',
      			actionTarget: '',
      			uIActionTag: 'SaveAndExit',
      			uIActionType: 'DEUIACTION'
      		},
              logic: {
              	name: 'toolbar_tbitem5_click',
              	actionTag: 'SaveAndExit',
              	xDataCtrlName: 'form',
              	predefinedType: 'EDITVIEW_SAVEANDEXITACTION',
              }
        },
    ],
    toolbarLogics: [
        ]     ,
    xDataCtrlName: "form",
    quickSearchPlaceholder: ['avue示例实体01名称',].join(","),
    useDefaultLayout: true,
  }
}
export const model = getModel();
